package com.xuhj.domain;

import com.xuhj.common.FieldIndex;

import java.util.Date;

public class Person {
    @FieldIndex(index = 0)
    private Integer id;
    @FieldIndex(index = 1)
    private String name;
    @FieldIndex(index = 2)
    private Integer age;
    @FieldIndex(index = 3)
    private String hobby;
    @FieldIndex(index = 4)
    private String job;
    @FieldIndex(index = 5)
    private String address;
    @FieldIndex(index = 6)
    private Date birthday;
    @FieldIndex(index = 7)
    private Character sex;
    @FieldIndex(index = 8)
    private Long phone;
    @FieldIndex(index = 9)
    private Boolean isWorked;

    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", hobby='" + hobby + '\'' +
                ", job='" + job + '\'' +
                ", address='" + address + '\'' +
                ", birthday=" + birthday +
                ", sex=" + sex +
                ", phone=" + phone +
                ", isWorked=" + isWorked +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Character getSex() {
        return sex;
    }

    public void setSex(Character sex) {
        this.sex = sex;
    }

    public Long getPhone() {
        return phone;
    }

    public void setPhone(Long phone) {
        this.phone = phone;
    }

    public Boolean getWorked() {
        return isWorked;
    }

    public void setWorked(Boolean worked) {
        isWorked = worked;
    }
}
